package com.bawei.shopping2.repository

import com.bawei.shopping2.entity.BannerEntity
import com.bawei.shopping2.entity.CarGoodsEntity
import com.bawei.shopping2.entity.CategoryEntity
import com.bawei.shopping2.entity.GoodsEntity
import com.bawei.shopping2.http.ApiResponse
import com.bawei.shopping2.http.ApiService
import com.bawei.shopping2.http.RetrofitManager
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Query
import javax.inject.Inject
//仓库
class CarRepository @Inject constructor(private var apiService: ApiService){
    //查看购物车
    suspend fun selectCar():ApiResponse<MutableList<CarGoodsEntity>>{
        return apiService.selectCar()
    }
    //删除购物车
    suspend fun deleteCar( requestBody: RequestBody):ApiResponse<String>{
        return apiService.deleteCar(requestBody)
    }

}